<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>登录</title>
		<link href="/static/lvshi_pc/css/person.css" rel="stylesheet" />
		<link href="/static/lvshi_pc/css/swiper-bundle.min.css" rel="stylesheet" />
		<link href="/static/lvshi_pc/css/animate.min.css" rel="stylesheet" />
		<link href="/static/lvshi_pc/css/reset.min.css" rel="stylesheet" />
		<script src="/static/lvshi_pc/js/swiper-bundle.min.js"></script>
		<script src="/static/lvshi_pc/js/jquery.min.js"></script>
		<script src="/static/lvshi_pc/js/wow.min.js"></script>
		<script src="/static/lvshi_pc/js/changeWindow.js"></script>
		<script src="/static/layer/layer.js"></script>
		<script src="/static/elementUi/axios.min.js"></script>
		<script src="/static/elementUi/Api.js"></script>
		<script src="/static/global/js/global.js"></script>
	
	</head>
	<body>
		<header>
			{include file="public/header"}
		</header>
		<div class="lobg">
			<div class="wrap">
				<div class="dengbox">
					<form id="myForm">
						<div class="dengbai">
							<div class="detitle">登录</div>
							<div class="dehui">
								<img src="/static/lvshi_pc/images/db_03.png" class="dapic" alt="">
								<input type="text" name="login_tel" class="deput" placeholder="请输入手机号">
							</div>
							<div class="dehui">
								<img src="/static/lvshi_pc/images/dc_03.png" class="dapic" alt="">
								<input type="password" name="login_password" id="myInput" class="deput" placeholder="请输入密码">
								<img src="/static/lvshi_pc/images/eye_03.png" class="eye" id="changeTypeBtn" alt="">
							</div>
							<div class="cebox">
								<a href="login.html">
									<div class="cetxt">验证码登录</div>
								</a>
								<a href="forget.html">
									<div class="cetxt">忘记密码？</div>
								</a>
							</div>
							<a href="javascript:;" onclick="submit()">
								<input type="hidden" value="password" name="login_type" placeholder="请输入密码">
								<div class="lubut">登录</div>
							</a>
						</div>
					
					</form>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			function submit() {
				Api.my("/index/index/login",$("#myForm").serialize()).then(res=>{
					if (res.code === 1) {
						showSuccessMsgCall('登录成功',()=>{
							location.href = "/"
						})
					} else {
						showErrMsg(res.msg)
					}
				})
			}
			// wow效果启用
			new WOW().init();
			 var putfr = false;
			     $(document).ready(function(){
			       $("#changeTypeBtn").click(function(){
			         if(putfr){
			           $("#myInput").attr("type", "password");
			         }else{
			           $("#myInput").attr("type", "text");       
			         }
			         putfr = !putfr; // 切换布尔值
			       });
			     });
			
		</script>
	</body>

</html>
